<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php $this->load->view('common/head');?>
<style>
    .nav-user-photo {
        line-height: 40px;
        height: 40px;
        border: 1px solid #E1E1E1;
        border-radius: 100%;
    }
</style>
<body class="no-skin">
<?php $this->load->view('common/header');?>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <?php $this->load->view('common/sidebar');?>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <?php $this->load->view('common/breadcrumbs');?>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">

                <?php $this->load->view('common/set');?>

                <!-- /section:settings.box -->
                <div class="row">
                    <form class="form-inline" action="" method="get">
                        <label class="inline">&nbsp;&nbsp;移动号码：</label>
                        <input type="text" name="keyword" value="" class="form-control">
                        <button type="submit" class="btn btn-purple btn-sm">
                            <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
                            查询
                        </button>
                    </form>
                    <br />
                        <table class="table table-striped table-bordered">
                            <thead>
                            <tr>
                                <th class="center"><input class="check-all" type="checkbox" value=""></th>
                                <th class="center">序号</th>
                                <th class="center">微信头像</th>
                                <th class="center">微信昵称</th>
                                <th class="center">备注名称</th>
                                <th class="center">号码</th>
                                <th class="center">地址</th>
                                <th class="center">性别</th>
                                <th>所属</th>
                                <th>时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if(!empty($list)) { ?>
                            <?php foreach ($list as $key => $val) { ?>
                                <tr>
                                    <th class="center"><input class="check-all" type="checkbox" value=""></th>
                                    <td class="center">
                                        <?php echo $val['user_id']; ?>
                                    </td>
                                    <td class="center">
                                        <img class="nav-user-photo" src="<?php echo $val['headimgurl']; ?>" alt="微信头像">
                                    </td>
                                    <td class="center">
                                        <?php echo $val['nickname']; ?>
                                    </td>
                                    <td class="center">
                                        <?php echo $val['user_name']; ?>
                                    </td>
                                    <td class="center"><?php echo $val['user_tel']; ?></td>
                                    <td class="center"><?php echo $val['user_dress']; ?></td>
                                    <td class="center"><?php echo $val['sex']; ?></td>
                                    <td><?php echo $val['agent_id']; ?></td>
                                    <td><?php echo $val['created_on']; ?></td>
                                </tr>
                            <?php }?>
                            <?php }?>
                            </tbody>
                        </table>
<!--                        {$page}-->
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
    </div><!-- /.main-content -->

<?php $this->load->view('common/footer');?>
</div><!-- /.main-container -->

<?php $this->load->view('common/footerjs');?>
<!-- inline scripts related to this page -->
<script type="text/javascript">

    $(function () {
        $("#officialnews ul").html('<div class="ace-icon fa fa-spinner fa-spin orange"></div>');
    })
    $("#adduser").click(function () {
        window.location.href="add";
    });

</script>
</body>
</html>
